public class only {
    public static void main(String[] args) {
        int[] arr = {2,2,1};
        int[] brr = {4,1,2,1,2};
        int count = 0;
        int a = 0;
        for(int i = 0;i < brr.length;i++){
            for(int j = i + 1;j < brr.length;j++){
                if(brr[i] == brr[j]){
                    count++;
                }
            }
        }
        if(count == 0) {
            System.out.println(a);
        }
    }
}
